package com.example.lianguisystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("T_LIAN_GUI_SALES_ORDER")
@ApiModel("销售订单表")
public class SalesOrder {
    @TableId(type = IdType.ASSIGN_ID)
    String id;

    @ApiModelProperty("客户")
    String client;

    @ApiModelProperty("品号")
    String designNo;

    @ApiModelProperty("品名")
    String cpTypeNo;

    @ApiModelProperty("规格(幅宽)")
    String specification;

    @ApiModelProperty("单价（RMB）")
    Double unitPrice;

    @ApiModelProperty("订单重量（kg")
    Double orderWeight;

    @ApiModelProperty("生产车间")
    Integer workshop;

    @ApiModelProperty("生产人员-弃用")
    String person;

    @ApiModelProperty("定量（g）")
    String ration;

    @ApiModelProperty("纹路")
    String texture;

    @ApiModelProperty("层数")
    String pilesNum;

    @ApiModelProperty("卷重（kg）")
    Double pieceWeight;

    @ApiModelProperty("直径（cm）")
    String diameter;

    @ApiModelProperty("接头数-弃用")
    private String pieceUps;

    @ApiModelProperty("分切机-弃用")
    private String machine;

    @ApiModelProperty("质检员-弃用")
    private String qualityInspector;

    @ApiModelProperty("数量（卷）")
    Double quantity;

    @ApiModelProperty("发货日期")
    String deliveryDate;

    @ApiModelProperty("订单id")
    Integer orderBillid;

    @ApiModelProperty("订单号")
    String orderBillcode;

    @ApiModelProperty("加工单id")
    Integer processingBillid;

    @ApiModelProperty("加工单号")
    String processingBillcode;

    @ApiModelProperty("创建人")
    String createBy;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    Date createDate;

    @ApiModelProperty("修改人")
    String updateBy;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("修改时间")
    Date updateDate;

    @ApiModelProperty("状态：0-未生成标签 1-已生成标签")
    Integer status;
    @ApiModelProperty("等级")
    Integer grade;
    @ApiModelProperty("备注")
    String remark;
    @TableField(exist = false)
    @ApiModelProperty("内容")
    String content;


    @TableField(exist = false)
    @ApiModelProperty("临时验收单验收数量")
    Double collectQty;
}
